import requests
import json

url = "http://192.168.113.38:5000/api/query"
headers = {"Content-Type": "application/json"}
data = {"question": "麦芽酚的评吸方式？"}

try:
    response = requests.post(url, headers=headers, data=json.dumps(data))
    # 打印状态码和响应内容
    print(f"状态码: {response.status_code}")
    print(f"响应内容: {response.json()}")
except requests.exceptions.RequestException as e:
    print(f"请求出错: {e}")